package com.tedu.springdemo.day01;

import java.io.Serializable;

/**
 *
 * @author  王桐桐
 *
 * 创建person对象        实体类=JAVABean【具体的类】规则
 * 属性
 * 方法
 * 构造器
 */

public class Person implements Serializable {
    private String name;
    private int age;


    public void say(){
        System.out.println("说");
    }

    public void eat(){
        System.out.println("吃");
    }

    public Person() {

    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
